package com.mjk.common.core.jdbc.conf;

import io.seata.spring.annotation.GlobalTransactionScanner;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
//@Configuration
public class SeataConfig {
	 @Value("${spring.application.name}")
	 private String applicationName;

    @Bean
    public GlobalTransactionScanner globalTransactionScanner() {
        return new GlobalTransactionScanner(applicationName, applicationName);
    }
}
